package com.bwda.dsrs.filecenter.service;


import com.bwda.dsrs.filecenter.domain.condition.userlog.UserLogCondition;
import com.bwda.dsrs.filecenter.domain.form.userlog.UserLogTreeFrom;
import com.bwda.dsrs.filecenter.domain.po.userlog.UserLogPo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户日志
 * @author liangjy
 */
public interface BusUserLogService extends BaseService<UserLogPo, UserLogCondition> {

    /**
     * 批量添加
     * @param userLogs
     * @return
     */
    public void insertBatch(List<UserLogPo> userLogs);

    /**
     * des
     * @param fileId
     * @param fileName
     * @param fileSize
     * @param originFileId
     * @param operateName
     * @param operateType
     * @param msg
     * @param rescode
     * @param targetObject
     */
    public void insertUserLog(Integer fileId, String fileName, Integer fileSize, Integer originFileId, String operateName, String operateType, String msg, Integer rescode,String targetObject);

    /**
     * des
     * @param userCode
     * @param userName
     * @param orgName
     * @param fileId
     * @param fileName
     * @param fileSize
     * @param originFileId
     * @param operateName
     * @param operateType
     * @param msg
     * @param rescode
     * @param targetObject
     */
    public void insertUserLogNoToken(String userCode,String userName,String orgName,Integer fileId, String fileName, Integer fileSize, Integer originFileId, String operateName, String operateType, String msg, Integer rescode,String targetObject) ;

    /**
     * des
     * @param fileId
     * @param type
     * @return
     */
     List<UserLogTreeFrom> queryListForSy(int fileId,int type);


    /**
     * des
     * @param list
     * @return
     */
    Map queryFkList(List<UserLogTreeFrom> list);

    /**
     * des
     * @return
     */
    List<UserLogPo> selectAll();
}